<template>
  <div>
    <h1 :style="{fontSize: hFontSize + 'em'}">Event Up</h1>
    <child :fontSize="hFontSize" @enlargeText="enlargeText"/>
    <child :fontSize="hFontSize" @enlargeText="enlargeText"/>
    <child :fontSize="hFontSize" @enlargeText="hFontSize += $event"/>
  </div>
</template>

<script>
import child from './02-Child'
export default {
  components: {
    child
  },
  data() {
    return {
      hFontSize: 1
    }
  },
  methods: {
    enlargeText(size) {
      this.hFontSize += size
    }
  }
}
</script>

<style>

</style>